﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="EnrolOut.aspx.cs" Inherits="EnrolOut" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>登记出库单</title>
    <link href="../css/style.css" rel="stylesheet" type="text/css" />
</head>
<body background ="../../images/物资右侧背景.jpg"  style="font-size:9pt; font:menu; font-style:italic;">
    <form id="form1" runat="server">
    <div style="text-align: left">
   <table style="vertical-align: top; text-align: left; font-size: 9pt;" border="0" cellpadding="0" cellspacing="0" width="700">
      
            <tr>
                <td style="width: 70px; height: 20px;">
                    出库单号</td>
                <td style="width: 160px; height: 20px;" align="left">
                    <asp:TextBox ID="txtOutID" runat="server" Enabled="False"></asp:TextBox></td>
                <td style="width: 120px; height: 20px;">
                </td>
                <td width="65" style="width: 70px; height: 20px">
                        </td>
                <td style="width: 160px; height: 20px;" align="left">
                        </td>
                <td style="width: 120px; height: 20px;">
                    </td>
            </tr>
            <tr>
                <td style="width: 70px; height: 20px;">
                    出库日期</td>
                <td style="width: 160px; height: 20px;" align="left">
                    <asp:TextBox ID="txtOutDate" runat="server"></asp:TextBox>&nbsp;
                </td>
                <td style="width: 120px; height: 20px">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtOutDate"
                        Display="Dynamic" ErrorMessage="*"></asp:RequiredFieldValidator><asp:CustomValidator ID="CustomValidator1" runat="server" ControlToValidate="txtOutDate"
                        Display="Dynamic" ErrorMessage="CustomValidator" OnServerValidate="CustomValidator1_ServerValidate"></asp:CustomValidator></td>
                <td style="height: 20px; width: 70px;" width="65">
                    客户名称</td>
                <td style="width: 160px; height: 20px;" align="left">
                        <asp:DropDownList ID="ddlCustomer" runat="server" OnSelectedIndexChanged="ddlCustomer_SelectedIndexChanged" AutoPostBack="True" AppendDataBoundItems="True">
                            <asp:ListItem>选择客户</asp:ListItem>
                        </asp:DropDownList></td>
                <td style="height: 20px; width: 120px;">
                    </td>
            </tr>
            <tr>
                <td style="width: 70px; height: 20px">
                    出库类型</td>
                <td style="width: 160px; height: 20px" align="left">
                    <asp:DropDownList ID="ddlOutType" runat="server">
                    </asp:DropDownList></td>
                <td style="width: 120px; height: 20px">
                </td>
                <td style="height: 20px; width: 70px;" width="65">
                    地&nbsp; &nbsp;&nbsp; 址</td>
                <td style="width: 160px; height: 20px" align="left">
                        <asp:TextBox ID="txtAddress" runat="server"></asp:TextBox></td>
                <td style="height: 20px; width: 120px;">
                </td>
            </tr>
            <tr>
                <td style="width: 70px; height: 20px;">
                    出库仓库</td>
                <td style="width: 160px; height: 20px;" align="left">
                    <asp:DropDownList ID="ddlOutPlace" runat="server">
                    </asp:DropDownList></td>
                <td style="width: 120px; height: 20px;">
                </td>
                <td width="65" style="height: 20px; width: 70px;">
                    电&nbsp; &nbsp;&nbsp; 话</td>
                <td style="width: 160px; height: 20px;" align="left">
                    <asp:TextBox ID="txtPhone" runat="server"></asp:TextBox></td>
                <td style="width: 120px; height: 20px">
                </td>
            </tr>
            <tr>
                <td style="width: 70px; height: 20px;">
                    经 办 人</td>
                <td style="width: 160px; height: 20px;" align="left">
                    <asp:TextBox ID="txtOutMan" runat="server"></asp:TextBox>
                    </td>
                <td style="width: 120px; height: 20px">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtOutMan"
                        Display="Dynamic" ErrorMessage="*"></asp:RequiredFieldValidator></td>
                <td style="height: 20px; width: 70px;" width="65">
                    联 系 人</td>
                <td style="width: 160px; height: 20px;" align="left">
                        <asp:TextBox ID="txtLinkMan" runat="server"></asp:TextBox></td>
                <td style="height: 20px; width: 120px;">
                </td>
            </tr>
            <tr>
                <td style="width: 70px; height: 20px">
                    批 准 人</td>
                <td style="width: 160px; height: 20px" align="left">
                    <asp:TextBox ID="txtSign" runat="server"></asp:TextBox>
                    </td>
                <td style="width: 120px; height: 20px">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtSign"
                        Display="Dynamic" ErrorMessage="*"></asp:RequiredFieldValidator></td>
                <td style="height: 20px; width: 70px;" width="65">
                    应收货款</td>
                <td style="width: 160px; height: 20px" align="left">
                        <asp:TextBox ID="txtPay" runat="server" Enabled="False"></asp:TextBox></td>
                <td style="height: 20px; width: 120px;">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtPay"
                        Display="Dynamic" ErrorMessage="*"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td style="width: 70px; height: 20px">
                    领用部门</td>
                <td style="width: 160px; height: 20px" align="left">
                    <asp:DropDownList ID="ddlUseDepartment" runat="server">
                    </asp:DropDownList></td>
                <td style="width: 120px; height: 20px">
                </td>
                <td style="height: 20px; width: 70px;" width="65">
                    备 &nbsp;&nbsp; 注</td>
                <td align="left" colspan="2" rowspan="2" style="width: 280px; height: 40px">
                    <asp:TextBox ID="txtRemark" runat="server" Height="30px" TextMode="MultiLine" Width="246px"></asp:TextBox></td>
            </tr>
       <tr>
           <td style="width: 70px; height: 20px">
               领 用 人</td>
           <td align="left" style="width: 160px; height: 20px">
                    <asp:TextBox ID="txtUserName" runat="server"></asp:TextBox></td>
           <td style="width: 120px; height: 20px">
           </td>
           <td style="height: 20px; width: 70px;" width="65">
           </td>
       </tr>
        </table>
        <div style="text-align: left">
        </div>
        <div style="text-align: left">
        </div>
        <div style="text-align: left">
            <table style="width: 700px" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td style="width: 70px; height: 22px;">
                        物资编码</td>
                    <td style="width: 160px; text-align: left; height: 22px;">
                        <asp:LinkButton ID="lnkWzID" runat="server" OnClick="lnkButtonWzID_Click" CausesValidation="False">物资编码</asp:LinkButton></td>
                    <td style="width: 119px; height: 22px; text-align: left">
                    </td>
                    <td style="width: 69px; color: #000000; height: 22px;">
                        库 &nbsp;&nbsp; 存</td>
                    <td style="width: 283px; height: 22px;" align="left">
                        <asp:Label ID="labStorage" runat="server" Width="63px">0</asp:Label></td>
                </tr>
                <tr>
                    <td style="width: 70px; height: 25px;">
                        名 &nbsp;&nbsp; 称</td>
                    <td style="width: 160px; height: 25px;">
                        <asp:TextBox ID="txtName" runat="server" Enabled="False"></asp:TextBox>
                        </td>
                    <td style="width: 119px; height: 25px;">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtName"
                            Display="Dynamic" ErrorMessage="*"></asp:RequiredFieldValidator></td>
                    <td style="width: 69px; height: 25px;">
                        计量单位</td>
                    <td style="width: 283px; height: 25px;" align="left">
                        <asp:DropDownList ID="ddlUnit" runat="server">
                        </asp:DropDownList></td>
                </tr>
                <tr>
                    <td style="width: 70px; height: 15px;">
                        型 &nbsp;&nbsp; 号</td>
                    <td style="width: 160px; height: 15px;">
                        <asp:TextBox ID="txtModel" runat="server" Enabled="False"></asp:TextBox></td>
                    <td style="width: 119px; height: 15px">
                    </td>
                    <td style="width: 69px; height: 15px;">
                        单 &nbsp;&nbsp; 价</td>
                    <td style="width: 283px; height: 15px;" align="left">
                        <asp:TextBox ID="txtUnitPrise" runat="server" Enabled="False"></asp:TextBox></td>
                </tr>
                <tr>
                    <td style="width: 70px; height: 24px;">
                        规 &nbsp;&nbsp; 格</td>
                    <td style="width: 160px; height: 24px;">
                        <asp:TextBox ID="txtSpec" runat="server" Enabled="False"></asp:TextBox></td>
                    <td style="width: 119px; height: 24px">
                    </td>
                    <td style="width: 69px; height: 24px;">
                        数 &nbsp;&nbsp; 量</td>
                    <td style="width: 283px; height: 24px;" align="left">
                        <asp:TextBox ID="TxtAmount" runat="server" AutoPostBack="True" OnTextChanged="TxtAmount_TextChanged"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="TxtAmount"
                            Display="Dynamic" ErrorMessage="*"></asp:RequiredFieldValidator></td>
                </tr>
                <tr>
                    <td style="width: 70px">
                        品 &nbsp;&nbsp; 牌</td>
                    <td align="left" style="width: 160px">
                        <asp:TextBox ID="txtCard" runat="server" Enabled="False"></asp:TextBox></td>
                    <td align="left" style="width: 119px">
                    </td>
                    <td style="width: 69px">
                        合计金额</td>
                    <td style="width: 283px" align="left">
                        <asp:TextBox ID="txtGathering" runat="server" Enabled="False"></asp:TextBox></td>
                </tr>
                <tr>
                    <td style="width: 70px; height: 23px">
                        </td>
                    <td style="width: 160px; height: 23px" align="center">
                        &nbsp;</td>
                    <td style="width: 119px; height: 23px">
                    </td>
                    <td style="height: 23px" colspan="2" align="center">
                        &nbsp;<asp:Button ID="btnClickOK" runat="server" OnClick="btnClickOK_Click" Text="登记" />
                         <input id="btnReset" type="reset" value="重置" language="javascript" /></td>
                </tr>
            </table>
        </div>
        <asp:Panel ID="Panel1" runat="server" Height="50px" Width="125px">
           <table style="vertical-align: top; text-align: left; font-size: 9pt;" width="80%">
                <tr>
                    <td rowspan="3" style="width: 90px">
                        <asp:TreeView ID="TreeView1" runat="server" ExpandDepth="0" ImageSet="WindowsHelp"
                            OnSelectedNodeChanged="TreseView1_SelectedNodeChanged" EnableClientScript="False">
                            <ParentNodeStyle Font-Bold="False" />
                            <HoverNodeStyle Font-Underline="True" ForeColor="#6666AA" />
                            <SelectedNodeStyle BackColor="#B5B5B5" Font-Underline="False" HorizontalPadding="0px"
                                VerticalPadding="0px" />
                            <RootNodeStyle BorderStyle="None" />
                            <NodeStyle Font-Names="Tahoma" Font-Size="8pt" ForeColor="Black" HorizontalPadding="5px"
                                NodeSpacing="0px" VerticalPadding="1px" />
                        </asp:TreeView>
                    </td>
                    <td rowspan="2" style="width: 664px; vertical-align: top; text-align: left;">
                        <asp:GridView ID="gvStatistic" runat="server" AutoGenerateColumns="False" OnSelectedIndexChanging="gvStatistic_SelectedIndexChanging"
                            Width="559px" BorderColor="Black" BorderWidth="1px" CellSpacing="1">
                            <Columns>
                                <asp:BoundField DataField="WzID" HeaderText="物资编号" />
                                <asp:BoundField DataField="Name" HeaderText="名称" />
                                <asp:BoundField DataField="Mode" HeaderText="型号" />
                                <asp:BoundField DataField="Spec" HeaderText="规格" />
                                <asp:BoundField DataField="Card" HeaderText="品牌" />
                                <asp:BoundField DataField="UnitPrise" HeaderText="单价" />
                                <asp:BoundField DataField="Unit" HeaderText="计量单位" />
                                <asp:BoundField DataField="Type" HeaderText="固定资产" />
                                <asp:CommandField HeaderText="选择" ShowSelectButton="True" />
                            </Columns>
                        </asp:GridView>
                    </td>
                </tr>
            </table>
        </asp:Panel>
    
    </div>
    </form>
</body>
</html>
